import collectFormId from '../../../../behaviors/collect-formid';
Component({
    behaviors: [collectFormId],
    /**
   * 组件的属性列表
   */
    properties: {
        courseType: {
            type: String,
            default: 'course'// 'course 课程；sub 订阅'
        },
        currentPrice: {
            type: Number,
            default: 0
        },
        originalPrice: {
            type: Number,
            default: 0
        },
        priceTip: {
            type: String,
            default: '一年'
        },
        isFree: {
            type: Boolean,
            default: false
        },
        isMember: {
            type: Boolean,
            default: false
        }
    },

    /**
   * 组件的初始数据
   */
    data: {

    },

    /**
   * 组件的方法列表
   */
    methods: {
        onBtnTapped () {
            this.triggerEvent('btntap');
        }
    }
});
